import request from '../utils/request';



//分页条件查询列表
export async function listByPage(param) {
    return request({
        url: '/equipment/list/'+param.current+"/"+param.size+"?equipmentId="+param.equipmentId,
        method: 'get'
    });
};


//删除
export async function deleteData(param) {
    return request({
        url: '/equipment/'+param.id,
        method: 'delete'
    });
};

//批量删除
export async function delAllData(param) {
    return request({
        url: '/equipment/all',
        method: 'post',
        data:param
    });
};

//导出数据
export async function exportData() {
    return request({
        url: '/equipment/export',
        method: 'get'
    });
};



